package com.dream.inspect.modules.business.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.dream.inspect.modules.business.entity.SysXzqhEntity;
import com.dream.inspect.modules.business.entity.SysXzqhbEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 行政区划表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-06-16 17:04:57
 */
public interface SysXzqhDao extends BaseMapper<SysXzqhEntity> {
    /**
     * 获取省市列表
     * @return
     */
    List<SysXzqhEntity> findProvincesAndCities();
    List<SysXzqhEntity> findAll();
    /**
     * 根据父id获取区划
     * @return
     */
    List<SysXzqhEntity> findByParentId(@Param("parentId") Long parentId);

}
